import type { AppRouteModule } from '@/router/types';

import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const msManage: AppRouteModule = {
  path: '/yw',
  name: 'ywManage',
  component: LAYOUT,
  redirect: '/ms/icon',
  meta: {
    orderNo: 19,
    icon: 'ion:git-compare-outline',
    title: t('业务管理'),
    roles: 'ms_user,manage',
  },

  children: [
    // {
    //   path: 'dictList',
    //   name: 'dictList',
    //   component: () => import('@/views/msManage/dictList/index.vue'),
    //   meta: {
    //     title: t('routes.demo.ms.dictList'),
    //   },
    // },
    // {
    //   path: 'groupList',
    //   name: 'groupList',
    //   component: () => import('@/views/heng/ywGroup/index.vue'),
    //   meta: {
    //     roles: 'manage',
    //     title: t('业务部门管理'),
    //   },
    // },
    {
      path: 'deptList',
      name: 'deptList',
      component: () => import('@/views/heng/ywDeptList/index.vue'),
      meta: {
        roles: 'manage',
        title: t('部门管理'),
      },
    },
    {
      path: 'accountOuto',
      name: 'accountOuto',
      component: () => import('@/views/heng/accountOuto/index.vue'),
      meta: {
        roles: 'manage',
        title: t('接单跟单抽成比例配置'),
      },
    },
    {
      path: 'commissionList',
      name: 'commissionList',
      component: () => import('@/views/heng/ywCommission/index.vue'),
      meta: {
        roles: 'manage',
        title: t('抽成比例分配管理'),
      },
    },
    {
      path: 'deptMainRateList',
      name: 'deptMainRateList',
      component: () => import('@/views/heng/deptMainRateList/index.vue'),
      meta: {
        roles: 'manage',
        title: t('业务部门主要抽成比例管理'),
      },
    },
    // {
    //   path: 'deptNextRateList',
    //   name: 'deptNextRateList',
    //   component: () => import('@/views/heng/deptNextRateList/index.vue'),
    //   meta: {
    //     roles: 'manage',
    //     title: t('时俱佳其他客户抽成比例管理'),
    //   },
    // },
  ],
};

export default msManage;
